package com.dw.etl.core.bean.model;

import java.io.Serializable;

public class EtlBaseField implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long idFld;

	private Long idBase;

	private String des;

	private String tbName;

	private String field;

	private String euType;

	private Byte fgPri;

	private Byte numPrec;

	private Integer numLength;

	public Byte getFgPri() {
		return fgPri;
	}

	public void setFgPri(Byte fgPri) {
		this.fgPri = fgPri;
	}

	public Long getIdFld() {
	    return idFld;
	}

	public void setIdFld(Long idFld) {
	    this.idFld = idFld;
	}

	public Long getIdBase() {
	    return idBase;
	}

	public void setIdBase(Long idBase) {
	    this.idBase = idBase;
	}

	public String getTbName() {
	    return tbName;
	}

	public void setTbName(String tbName) {
	    this.tbName = tbName;
	}

	public String getField() {
	    return field;
	}

	public void setField(String field) {
	    this.field = field;
	}

	public String getEuType() {
	    return euType;
	}

	public void setEuType(String euType) {
	    this.euType = euType;
	}

	public Integer getNumLength() {
	    return numLength;
	}

	public void setNumLength(Integer numLength) {
	    this.numLength = numLength;
	}

	public Byte getNumPrec() {
	    return numPrec;
	}

	public void setNumPrec(Byte numPrec) {
	    this.numPrec = numPrec;
	}

	public String getDes() {
	    return des;
	}

	public void setDes(String des) {
	    this.des = des;
	}

	@Override
	public boolean equals(Object that) {
	    if (this == that) {
	        return true;
	    }
	    if (that == null) {
	        return false;
	    }
	    if (getClass() != that.getClass()) {
	        return false;
	    }
	    EtlBaseField other = (EtlBaseField) that;
	    return (this.getIdFld() == null ? other.getIdFld() == null : this.getIdFld().equals(other.getIdFld())) && (this.getIdBase() == null ? other.getIdBase() == null : this.getIdBase().equals(other.getIdBase())) && (this.getTbName() == null ? other.getTbName() == null : this.getTbName().equals(other.getTbName())) && (this.getField() == null ? other.getField() == null : this.getField().equals(other.getField())) && (this.getEuType() == null ? other.getEuType() == null : this.getEuType().equals(other.getEuType())) && (this.getNumLength() == null ? other.getNumLength() == null : this.getNumLength().equals(other.getNumLength())) && (this.getNumPrec() == null ? other.getNumPrec() == null : this.getNumPrec().equals(other.getNumPrec())) && (this.getDes() == null ? other.getDes() == null : this.getDes().equals(other.getDes()));
	}

	@Override
	public int hashCode() {
	    final int prime = 31;
	    int result = 1;
	    result = prime * result + ((getIdFld() == null) ? 0 : getIdFld().hashCode());
	    result = prime * result + ((getIdBase() == null) ? 0 : getIdBase().hashCode());
	    result = prime * result + ((getTbName() == null) ? 0 : getTbName().hashCode());
	    result = prime * result + ((getField() == null) ? 0 : getField().hashCode());
	    result = prime * result + ((getEuType() == null) ? 0 : getEuType().hashCode());
	    result = prime * result + ((getNumLength() == null) ? 0 : getNumLength().hashCode());
	    result = prime * result + ((getNumPrec() == null) ? 0 : getNumPrec().hashCode());
	    result = prime * result + ((getDes() == null) ? 0 : getDes().hashCode());
	    return result;
	}

	@Override
	public String toString() {
	    StringBuilder sb = new StringBuilder();
	    sb.append(getClass().getSimpleName());
	    sb.append(" [");
	    sb.append("Hash = ").append(hashCode());
	    sb.append(", serialVersionUID=").append(serialVersionUID);
	    sb.append(", idFld=").append(idFld);
	    sb.append(", idBase=").append(idBase);
	    sb.append(", tbName=").append(tbName);
	    sb.append(", field=").append(field);
	    sb.append(", euType=").append(euType);
	    sb.append(", numLength=").append(numLength);
	    sb.append(", numPrec=").append(numPrec);
	    sb.append(", des=").append(des);
	    sb.append("]");
	    return sb.toString();
	}


}